﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/FrontPage.Master" Inherits="System.Web.Mvc.ViewPage<ZXCompany.Models.Entity.ZX_ExpertType>" %>
<%@import Namespace="ZXCompany.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP_Content" runat="server">

    <div class="clear"></div>
<div class="p_dao">
<ul>
<li> 
当前位置 ：<%=Html.ActionLink("首页", "Index", "Home", null, new { @class = "position_aclass" })%>&gt;<%=Html.ActionLink("关于我们", "About", "Home", null, new { @class = "position_nowtitle" })%> &gt;专家团队
</li>
</ul>
</div>
<div class="container clearfix">
<div class="p_left">
<div class="leftlist" id="com_sort_products" editok="online">
<h1>关于我们</h1>
<ul class="ullist_sortnav">
<li class="p_s_li1">
<%=Html.ActionLink("公司介绍", "About", "Home", null, new { @class = "p_s_li1_a" })%>
</li>
<li class="p_s_li1">
<%=Html.ActionLink("经营理念", "RunIdea", "Home", null, new { @class = "p_s_li1_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("总经理致辞", "ManagerSay", "Home", null, new { @class = "p_s_li0_a" })%>
</li>
<li class="p_s_li0">
<%=Html.ActionLink("专家团队", "ExpertTeam", "Home", null, new { @class = "p_s_li0_a" })%>
</li>

</ul>
</div>
<div class="clear">
</div>
</div>
<div class="p_rig1">
<div class="pbanner" id="com_thenm_banner" editok="online">
</div>
<div class="clear">
</div>
<div class="mtop2">
</div>
<dl class="p_r_t">
<dt>
<h2 class="color2"> 专家团队 </h2>
</dt>
</dl>
<div class="clear">
</div>
<div class="p_content clearfix" id="com_thenm_list" editok="online">
  <% List<ZX_ExpertType> lexpert = (List<ZX_ExpertType>)ViewData["LExpertType"]; %>
  <table>
    <%
        bool isfrist = false;
        foreach (ZX_ExpertType zxexpert in lexpert)
      {
          if (zxexpert.Lexpert.Count > 0)
          {
            if(isfrist)
            {
        %>
            <tr style=" height:40px;">
                <td></td>
            </tr>
        <%}
            isfrist = true;
        %>
        <tr>
            <td style=" text-decoration:underline"><b> <%=zxexpert.etype%></b></td>
        </tr>
        
        <tr>
        <%
              
              for (int i = 0; i < zxexpert.Lexpert.Count; i++) {
              if ((i + 1) % 4 == 0 || (i + 1) == zxexpert.Lexpert.Count)
              {
                  
                %>
                    <td>
                        <table>
                            <tr><td><a href='<%=Url.Action("ExpertDetail", "Home", new{expertid=zxexpert.Lexpert[i].ID}) %>'>
                            <img src="<%= zxexpert.Lexpert[i].imageUrl%>" alt=""/>
                            </a>
                            </td></tr>
                            <tr><td><%=zxexpert.Lexpert[i].expertName %>&nbsp;&nbsp;<%=zxexpert.Lexpert[i].expertPostion %></td></tr>
                        </table>
                    </td>
                    </tr>
                <%
                  if ((i + 1) != zxexpert.Lexpert.Count) { %>
                  <tr>
                  <%}
              }
              else
              { %>
                <td>
                        <table>
                            <tr><td>
                            <a href='<%=Url.Action("ExpertDetail", "Home", new{expertid=zxexpert.Lexpert[i].ID}) %>'>
                            <img src="<%= zxexpert.Lexpert[i].imageUrl%>" alt=""/>
                            </a>
                            </td></tr>
                            <tr><td><%=zxexpert.Lexpert[i].expertName %>&nbsp;&nbsp;<%=zxexpert.Lexpert[i].expertPostion %></td></tr>
                        </table>
                </td>
                    <%
              }    
          } %>
          
  <%
          
          }
      }%>
  </table>
  
</div>
</div>
<div class="clear"></div>

</div>

</asp:Content>
